﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"  %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

    <title></title>
    <script language="javascript" type="text/javascript">

        window.onerror = function () {
            return true;
        };
    </script>
    <script src="../Scripts/jquery.js" type="text/javascript"></script>
    <link href="../Styles/ts_css.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {
            var winHeight = $(document.body).outerHeight(true);
            $("#hidWinHeight").val(winHeight);
            //            alert($(window).height()); //浏览器当前窗口可视区域高度 
            //            alert($(document).height()); //浏览器当前窗口文档的高度 
            //            alert($(document.body).height()); //浏览器当前窗口文档body的高度 
            //            alert($(document.body).outerHeight(true)); //浏览器当前窗口文档body的总高度 包括border padding margin 

        });
    
    </script>
    <style type="text/css">
    
    a{
    text_decoration:none;
    }
    form{
    margin:0px;display:inline;align:right
    }
    input{
     margin:0px;display:inline
    }
    /* 列表样式2 * START --------------------*/
    table.tablist
    {
        width: 100%;
        font-size: 12px;
        margin: 0 auto;
        color: #515151;
        text-align: center;
        border-collapse: collapse; /*细线表格代码*/
    }
    table.tablist td
    {
        border: 1px solid #82AFE8; /*细线表格线条颜色*/
        height: 23px;
    }
    table.tablist tr.t1 td
    {
        background-color: #fff;
    }
    /* 交替行第一行的背景色 */
    table.tablist tr.t2 td
    {
        background-color: #EDEDED;
    }
    /* 交替行第二行的背景色 */
    table.tablist tr.t3 td
    {
        background-color: #BDDBFF;
    }
    /* 鼠标经过时的背景色 */
    table.tablist th
    {
        line-height: 23px;
        border: 1px solid #82AFE8;
        background: url(../images/table_dataList.gif) left center repeat-x;
        color: #005B7C;
    }
    table.tablist tbody tr td
    {
        text-align: center;
        white-space: nowrap;
    }
    
    
    /* 列表样式2 *END ---------------------*/
</style>
</head>
<body style="margin-top: 5px; background: #EFF3FF;">
<div class="fjlb">
    <div class="fjlb_1">
        <div >
 
    <input type="button" id="btnAdd"  value="添加房间" onclick="window.location='goaddhtroomonly.do'"/>
	
	<form action="selectlikeroom.do" method="post"  style="float:right;">
	项目名称:<input name="projectId" id="projectId" value="" /> 
	楼栋名称:<input name="buildId" id="buildId" value="" />
	单元:<input name="unitId" id="unidId" value="" />
	    <input type="submit" value="查询">
	</form>
	
	
	
	</div>
        <div class="fjlb_1_jt" id="testtab">
            <a href="#" onclick="Effect('test',this.parentNode.id);">
                <img src="../images/jt1_t.png" id="imgJtd" alt="" /></a></div>
    </div>
    <div class="fjlb_2" id="divTj" style="overflow:scroll; height: 400px; width:1330px;">
        <table class="tablist"  align="center" width="300px" cellspacing="0" >
            <thead style="background: #EFF3EF;">
                <tr>
                    <th class="style1" width="5">
                        序号
                    </th>
                    <th width="7%">
                        项目名称
                    </th>
                    <th width="7%">
                       楼栋名称
                    </th>
                    <th width="5%">
                        单元
                    </th>
                     <th width="7%">
                        户型
                    </th>
                    <th width="7%">
                       用途
                    </th>
                    <th width="5%">
                        楼层
                    </th>
                    <th width="5%">
                        房间房号
                    </th>
                    <th width="7%">
                        建筑面积
                    </th>
                    <th width="7%">
                        套内面积
                    </th>
                    <th width="7%">
                        套内面积单价
                    </th>
                     <th width="7%">
                        建筑面积单价
                    </th>
                    <th width="7%">
                        标准总价
                    </th>
                    <th width="7%">
                        房间状态
                    </th>
                    <th width="5%">
                        修改
                    </th>
                    <th width="5%">
                        删除
                    </th>
                </tr>
            </thead>
            <tbody id="listHeader">
            <c:forEach var="bean" items="${list}"  varStatus="s">
           <tr class="text-c odd" role="row"> 
        
               <td class="ybox06td03bcenter">${s.index+1}</td>
	           <td>${bean.projectId}</td>
	           <td>${bean.buildId}</td>
	           <td>${bean.unitId}</td>
	           <td>${bean.apartmentLayoutId}</td>
	           <td>${bean.purposeId}</td>
	           <td>${bean.floor}</td>
	           <td>${bean.roomCode}</td>
	           <td>${bean.buildUpArea}</td>
	           <td>${bean.innerArea}</td>
	           <td>${bean.innerPrice}</td>
	           <td>${bean.unitPrice}</td>
	           <td>${bean.deleteState}</td>
	           <td>${bean.state}</td>	           
	           <td><a onClick="system_category_upd('修改房间','')" href="goupdatehtroom.do?roomId=${bean.roomId}">修改</a></td>
	           <td><a href="javascript:void(0);" onclick="fun1('${bean.roomId}')">删除</a></td>

		   </tr>
           </c:forEach> 
            </tbody>
        </table>
  
        
    </div>
</div>
<script language="JavaScript" type="text/JavaScript">
 function system_category_add(title,url,w,h){
	layer_show(title,url,w,h);
}
 function system_category_room(title,url,w,h){
	layer_show(title,url,w,h);
}

 function system_category_upd(title,url,w,h){
	layer_show(title,url,w,h);
}
  	function fun1(id){
  		if(confirm("是否确定删除!")){
  			location.href="deletehtroom.do?roomId="+id;
  		}
  	}

</script>
</body>
</html>
